// 自动生成模板SmsSeckillSession
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// smsSeckillSession表 结构体  SmsSeckillSession
type SmsSeckillSession struct {
	Id         *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`         //id
	Name       *string    `json:"name" form:"name" gorm:"comment:场次名称;column:name;size:200;"`           //场次名称
	StartTime  *time.Time `json:"startTime" form:"startTime" gorm:"comment:每日开始时间;column:start_time;"`  //每日开始时间
	EndTime    *time.Time `json:"endTime" form:"endTime" gorm:"comment:每日结束时间;column:end_time;"`        //每日结束时间
	Status     *bool      `json:"status" form:"status" gorm:"comment:启用状态;column:status;"`              //启用状态
	CreateTime *time.Time `json:"createTime" form:"createTime" gorm:"comment:创建时间;column:create_time;"` //创建时间
}

// TableName smsSeckillSession表 SmsSeckillSession自定义表名 sms_seckill_session
func (SmsSeckillSession) TableName() string {
	return "sms_seckill_session"
}

type SmsSeckillSessionRepo interface {
}

type SmsSeckillSessionUsecase struct {
	repo SmsSeckillSessionRepo
	log  *log.Helper
}

func NewSmsSeckillSessionUsecase(repo GreeterRepo, logger log.Logger) *SmsSeckillSessionUsecase {
	return &SmsSeckillSessionUsecase{repo: repo, log: log.NewHelper(logger)}
}
